package cn.tedu.imop.basic.dao.repository;

import cn.tedu.imop.basic.entity.Business;
import cn.tedu.imop.common.pojo.PageData;

import java.io.Serializable;
import java.util.List;

/**商家数据层接口*/
public interface BusinessRepository {
    /**
     * 查询商家分类列表信息
     * @param bussiness
     * @return
     */
     PageData<Business> selectBusinessList(Business bussiness);
    /**
     * 添加新的商家分类信息
     * @param business
     * @return
     */
    int insertBusiness(Business business);
    default int insertBatchBusiness(List<Business> business){
        return 0;
    }
    default Business selectBusinessById(Serializable id){
        return null;
    };
    default int updateBusiness(Business business){
        return 0;
    }
    default int deleteBusinessById(Serializable id){
        return 0;
    }
    default int deleteBatchBusiness(List<? extends Serializable> id){
        return 0;
    }
}
